package com.example.androidpattern.decorator.classes;

import com.example.androidpattern.decorator.interfaces.IRouJiaMo;

/**
 * @ClassName: RJMDecorator$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/12/18$ 17:35$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class RJMDecorator implements IRouJiaMo {
    IRouJiaMo mRouJiaMo;

    public RJMDecorator(IRouJiaMo rouJiaMo) {
        mRouJiaMo = rouJiaMo;
    }

    @Override
    public int price() {
        return mRouJiaMo.price();
    }

    @Override
    public String info() {
        return mRouJiaMo.info();
    }
}
